//
//  IndexListView.m
//  PlayBall
//
//  Created by Huawen Liu on 12-7-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddIndexListView.h"
#import "JddViewControllerManager.h"
#import "JddUserProfile.h"

@implementation JddIndexListView
@synthesize delegate;
@synthesize followLabel;
@synthesize followButton;
@synthesize type;
GET_INSTANCE_VIEW_IMPLEMENT(JddIndexListView)

-(void)selectButton1{
    [self dismissAnimated:YES];
    
    [delegate performSelector:@selector(selectorbutton1)];
}

-(void)selectButton2{
    [self dismissAnimated:YES];
    [delegate performSelector:@selector(selectorbutton2)];
    
}

-(void)selectButton3{
    [self dismissAnimated:YES];
    [delegate performSelector:@selector(selectorbutton3)];
    
}

-(IBAction)touchOutside:(id)sender{
    [self dismissAnimated:YES];
}

-(void)selectButton4{
    [self dismissAnimated:YES];
    [delegate performSelector:@selector(selectorbutton4)];
    
}

- (void)loadContentView{
    _contentView = [JddIndexListView getInstanceView];
    [[JddViewControllerManager sharedInstance].navigationController.navigationController.navigationBar setUserInteractionEnabled:YES];
    if (self.type == 0) {
        followButton.hidden = NO;
        followLabel.hidden = NO;
    }else {
        followLabel.hidden = YES;
        followButton.hidden = YES;
    }
}


- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
    // Initialization code
}
return self;
}


@end
